package cn.edu.scau.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
@NoArgsConstructor
@Data
@AllArgsConstructor
@Builder
public class MedicationrecordConve implements Serializable {

    /**
     * 客户id
     */
    @NotBlank(message = "客户id不能为空")
    @Pattern(regexp = "^[0-9]*[1-9][0-9]*$",message = "客户id为数字")
    private String customerid;
    /**
     * 药名
     */
    private String medicationrecorddrugname;
    /**
     * 药物剂量
     */
    private String medicationrecorddosage;
    /**
     * 用药方法
     */
    private String medicationrecordmethod;
    /**
     * 送药人
     */
    private String medicationrecordshipper;
    /**
     * 配药人
     */
    private String medicationrecorddispenser;

    private static final long serialVersionUID = 1L;
}
